﻿<Window x:Class="MetaTracker.View.RegisterWithingsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="RegisterWithingsView" Height="250" Width="368"
        WindowStartupLocation="CenterScreen"
        Loaded="RegisterWithingsView_Loaded"
        >
    <StackPanel Orientation="Vertical" Margin="5,0,5,0">
        <TextBlock Margin="0,25,0,0" Text="Link Withings Account" 
                   HorizontalAlignment="Center"/>
        <TextBlock Margin="0,5,0,0" Text="Sign onto your Withings account, and  got to:                     " 
                   HorizontalAlignment="Center"/>
        <TextBlock Margin="0,0,0,0" Text="Share -> &quot;Post on the web and/or other websites&quot; " 
                   HorizontalAlignment="Center"/>
        <TextBlock Margin="0,0,0,15" Text="Then copy the User ID and Public Key into the below fields." 
                   HorizontalAlignment="Center"/>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="AUTO"/>
                <RowDefinition Height="AUTO"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="AUTO"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="User ID Number: "/>
            <TextBlock Grid.Row="1" Grid.Column="0" Text="Public Key: "/>
            <TextBox Grid.Row="0" Grid.Column="1" Name="UserIDTextBox"
                     Text="{Binding WithingsUserID, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBox Grid.Row="1" Grid.Column="1" 
                     Text="{Binding WithingsPublicKey, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="00,20,0,0">
            <Button Width="70" Content="_Cancel" Margin="0,0,45,0" Name="CancelButton" IsCancel="True"
                    Command="{Binding CancelCommand}"/>
            <Button Width="70" Content="_Register" Name="RegisterButton" IsDefault="True"
                    Command="{Binding RegisterWithingsCommand}"/>
        </StackPanel>
    </StackPanel>

<!--VERSION 1-->
    <!--<StackPanel Orientation="Vertical" Margin="5,0,5,0">
        <TextBlock Margin="0,25,0,15" Text="Link Withings Account" 
                   HorizontalAlignment="Center"/>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="AUTO"/>
                <RowDefinition Height="AUTO"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="AUTO"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="E-mail Address: "/>
            <TextBlock Grid.Row="1" Grid.Column="0" Text="Password: "/>
            <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding WithingsEmail, Mode=TwoWay, 
                UpdateSourceTrigger=PropertyChanged}"/>
            <PasswordBox Name="PasswordBox1"  Grid.Row="1" Grid.Column="1" />
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="00,20,0,0">
            <Button Width="70" Content="_Cancel" Margin="0,0,45,0" Name="CancelButton" IsCancel="True"/>
            <Button Width="70" Content="_Register" Name="RegisterButton" IsDefault="True"/>
        </StackPanel>
    </StackPanel>-->
</Window>
